from decimal import Decimal

def get_total_amount(obj_list):
    total_amount = Decimal(0)
    for (obj,(amount, gr_list)) in obj_list:
        total_amount += amount

    return total_amount

